class_name Skill
extends Node2D



enum Type 
{
    ACTIVE,
    PASSIVE,
}


@export_group("基础信息")
@export var s_name: String
@export_multiline var description: String
@export var icon: Texture2D
@export var type: Type
@export var cool_down: float
@export var max_stacked: int = 1

var _curr_count: int



func _process(_delta: float) -> void:
    if type == Type.PASSIVE and _triggered_condition():
        effect()


func effect() -> void:
    pass


func reset() -> void:
    pass


# func 

func _triggered_condition() -> bool:
    return false